package com.internship.dao;



import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.internship.model.Question;
import com.internship.model.QuestionReply;
import com.internship.page.Pagination;

public interface QuestionDao {
	public Question getQuestionById(int Id);
	public List<Question>  getQuestionList(@Param("StudentName") String StudentName ,@Param("DeptCode") String DeptCode,@Param("TeacherNumber") String TeacherNumber,Pagination page);
	public List<Question>  getMyQuestionList(@Param("JobStudentNumber") String JobStudentNumber ,Pagination page);
	public List<Question>  getTeacherGuideQuestionList(@Param("TeacherNumber") String TeacherNumber ,Pagination page);
	public List<Question>  getQuestionList();
	public int addQuestion(Question question);
	public int getQuestionCount(@Param("DeptCode") String DeptCode,@Param("grade") int grade);
	public int getQuestionUnreadCount(@Param("DeptCode") String DeptCode,@Param("grade") int grade);
	public int getHomeQuestionUnreadCount(@Param("DeptCode") String DeptCode,@Param("TeacherNumber") String TeacherNumber);
	public int updateQuestion(Question question);
	public int delQuestion(@Param("Id") int Id);
	public int delAll(String[] ids);
	public int addQuestionReply(QuestionReply questionReply);
	public List<QuestionReply>  getQuestionReplyList(@Param("QuestionId") int QuestionId);
	public int getQuestionReplyCount(@Param("QuestionId") int QuestionId);
}
